#ifndef NETWORK_ERROR_HANDLER_SERVER_HH
# define NETWORK_ERROR_HANDLER_SERVER_HH

# include <network/network-error-handler.hh>

class NetworkErrorHandlerServer: public NetworkErrorHandler
{
public:
  NetworkErrorHandlerServer ();

  //read errors
  virtual boost::shared_ptr<Request> readFail (const std::exception& e) ;
  virtual boost::shared_ptr<Request> readWrongSize (int numread, int toread);
  virtual std::string rawReadFail (const std::exception& e);

  //write errors
  virtual void sendFail (const std::exception& e);
};

# endif /// !NETWORK_ERROR_HANDLER_SERVER_HH
